package com.wlgc.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MenuMapper {

    //通过学号获取权限信息
    @Select("select distinct perm_key from  user_role ur left join role_menu rm on ur.rid=rm.rid left JOIN menu m on m.mid=rm.mid where ur.uid =#{uid};")
    List<String> getMenu(int uid);
}
